package java8Test.function.lambda.part2;

import spring.po.User;

import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;

/**
 * @author : yang.xp
 * @date : 2022/9/22 18:07
 * @description :
 */
public class FunctionTest {

    private static Function<User, List<User>> function = t -> {
        List<User> userList = new ArrayList<>();
        userList.add(t);
        return userList;
    };

    public static void main(String[] args) {
        User user = User.buildUser();
        System.out.println(function.apply(user));
    }


}
